<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	StringBuffer strURL = request.getRequestURL();
	String URL = strURL.toString();
	String contPath = request.getContextPath();
	int nIndex = URL.indexOf(contPath);
	URL = "http://tugo.cn/weixin_aef/";
	%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- 移动端必须的设置 -->
<link rel="stylesheet" href="<%=URL%>newedition/css/aui.css" />
<link rel="stylesheet" href="<%=URL%>newedition/css/user_infoWorker.css" />
<link rel="stylesheet" href="<%=URL%>newedition/css/aui-pull-refresh.css" />
<script type="text/javascript" src="<%=URL%>newedition/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-toast.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-slide.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-pull-refresh.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-popup-new.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/aui-dialog.js"></script>
<script type="text/javascript" src="<%=URL%>js/cookies.js?version=1.1"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/base.js?version=3.4"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/doRefresh.js"></script>
<script type="text/javascript" src="<%=URL%>newedition/js/auipopupstyle.js?version=3.4"></script>
<script type="text/javascript" src="<%=URL%>js/doT.min.js"></script>
<title>收油人员资料信息</title>
<style>
			.aui-popup-content {
				background-color: rgba(68, 68, 68, 0.9);
				border-radius: 0.2rem;
				overflow: hidden;
				min-height: 4.5rem;
				height: 100%;
			}
			
			.aui-popup-arrow {
				position: absolute;
				width: 10px;
				height: 10px;
				-webkit-transform-origin: 50% 50% 0;
				transform-origin: 50% 50% 0;
				background-color: transparent;
				background-image: -webkit-linear-gradient(45deg, #ffffff, #ffffff 50%, transparent 50%);
				background-image: linear-gradient(45deg, rgba(68, 68, 68, 0.9), rgba(68, 68, 68, 0.9) 50%, transparent 50%);
			}
		</style>
	</head>

	<body>
		<header class="aui-bar aui-bar-nav">
			<!-- <a class="aui-pull-left aui-btn">
				<span class="aui-iconfont aui-icon-left"></span>
			</a> -->
			<div class="aui-title">信息资料</div>
			<a class="aui-pull-right aui-btn" onclick="showPopup('top-right')">
				<span class="aui-iconfont aui-icon-more"></span>
			</a>
		</header>
		<div class="body-box aui-refresh-content">
			<div class="header-box">
				<div class="header-img">
					<span>
						<img id="hearderimg" src="" />
					</span>
				</div>
				<div class="header-nem aui-margin-5" id="realname">李四</div>
				<div class="header-LV">LV.5</div>
			</div>
			<div class="main01 aui-row aui-margin-b-15">
				<div class="aui-col-xs-6 main01-left">
					<div class="main01-img">
						<i class="icon iconfont icon-iconfuzhi"></i>
					</div>
					<div class="main01-title">收油总量</div>
					<div class="main-content">
						<span class="quantity" id="totalrealnum"></span>
						<span>桶</span>
					</div>
				</div>
				<div class="aui-col-xs-6 main01-right">
					<div class="main01-img">
						<i class="icon iconfont icon-star1"></i>
					</div>
					<div class="main01-title">评论得分</div>
					<div class="main-content">
						<span class="quantity" id="totalaverage"></span>
						<span>分</span>
					</div>
				</div>
			</div>
			<div class="main02 aui-content-padded">
				<div class="main02-title">
					<span>综合评价</span>
				</div>
				<div class="main02-content">收油人员，长期在工作中认真负责，同时对待客户很有礼貌并以客户的要求为使命，很好的诠释了顾客至上的道理，得到客户广泛的好评。 希望“李四”在接下来的工作中再接再厉，继续保持对此份责任的热情。
				</div>
			</div>
		</div>
	</body>
<script>
$(function(){
	GetSingleOpenIdForMobile(getCookie("salesmaniphone"));
})
function GetSingleOpenIdForMobile(mobile) {
	showDefault("loading","加载中...");
	var json = '{"mobile": "'+mobile+'"}';
	$.ajax({
			type: "post",
			datatype: 'json',
			contentType: 'application/json;charset=UTF-8',
			url: 'http://118.178.18.0:8082/alfa-mobile-ws/rest/OpenId/GetSingleOpenIdForMobile?mobiletoken='+getCookie("mobiletokenuser")+'',
			data: json,
			success: function(data) {
				toast.hide();
				if(data.message=="1"){
					$("#realname").html(data.data.realname);
					if(data.data.totalaverage){
					    $("#totalrealnum").html(data.data.totalrealnum ); 
						$("#totalaverage").html((data.data.totalaverage /data.data.commentnum ).toFixed(1));
					}else{
						$("#totalaverage").html(0);
						$("#totalrealnum").html(0); 
					}
					$("#hearderimg").attr('src',data.data.headimgurl);
					/* $("#realname").html(data.data.rows.realname); */
				}else{
					
				}
			}
	})
}
var popup = new auiPopup();
		dorefresh();
</script>
</html>